<template>
  <el-card class="app-container">
    <c-u-r-d-table :option="option"/>
  </el-card>
</template>

<script>

import ColumnType from '@/framework/constant/ColumnType'
import BusinessTypeEnum from '@/feature/pms/infra/constants/BusinessTypeEnum'
import PaymentMethodEnum from '@/feature/pms/infra/constants/PaymentMethodEnum'
import OnlineStatusEnum from '@/framework/constant/OnlineStatusEnum'
import { paymentOrderApi } from '@/feature/pms/infra/api/paymentOrderApi'
import CURDTable from '@/framework/components/table/CURDTable'

export default {
  components: { CURDTable },
  data() {
    return {
      option: {
        requestApi: paymentOrderApi,
        columns: [
          {
            label: '订单号',
            prop: 'orderNo'
          },
          {
            label: '业务类型',
            prop: 'businessType',
            type: ColumnType.RADIO,
            options: BusinessTypeEnum
          },
          {
            label: '业务ID',
            prop: 'businessId',
            searchable: true,
            type: ColumnType.SELECT
          },
          {
            label: '支付方式',
            prop: 'paymentMethod',
            type: ColumnType.RADIO,
            options: PaymentMethodEnum
          },
          {
            label: '交易流水号',
            prop: 'transactionId',
            type: ColumnType.SELECT
          },
          {
            label: '状态',
            searchable: true,
            type: ColumnType.RADIO,
            hiddenInForm: true,
            options: OnlineStatusEnum,
            prop: 'status'
          },
          {
            label: '创建时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtCreate'
          },
          {
            label: '修改时间',
            type: ColumnType.DATETIME,
            hiddenInForm: true,
            prop: 'gmtModified'
          }
        ]
      }
    }
  },
  methods: {}
}
</script>

